package com.example.factory.error;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public class MyNodeError extends RuntimeException {
    NodeErrorEnum nodeErrorEnum;

    @Override
    public String getMessage() {
        return nodeErrorEnum.getMsg();
    }
}
